package cn.tedu.csmall.product.ex;

import cn.tedu.csmall.product.web.ServiceCode;

/**
 * 业务异常类
 *
 * @author Tan
 * @version 0.0.1
 */
public class ServiceException extends RuntimeException{

    private ServiceCode code;

    public ServiceException(ServiceCode code, String message) {
        super(message);
        this.code = code;
    }

    public ServiceCode getCode() {
        return code;
    }
}
